package cn.edu.sjtu.se.dslab.util;

import java.util.Comparator;
import java.util.Map;

import cn.edu.sjtu.se.dslab.component.dp.parse.Property;

public class MapComparaor implements Comparator<Map<String, Property>> {

	@Override
	public int compare(Map<String, Property> o1, Map<String, Property> o2) {
		if(o1.get("buttonCode")!=null&&o2.get("buttonCode")!=null){
			return o1.get("buttonCode").getValue().compareTo(o2.get("buttonCode").getValue());
		}
		return 0;
	}

}
